/*
 * View.fx
 *
 * Created on Oct 10, 2009, 12:08:49 AM
 */
package AlertSystem;

import javafx.scene.CustomNode;
import javafx.scene.text.Font;
import java.lang.Runtime;

/**
 * @author quang
 */

//multiplier for zooming charts
public def zoomMultiplier: Number = 0.25;
public def disease: String = "HIT";

public def dataPointRadius: Integer = 4;
public def yLabelWidth: Number = 35; //space (#pixel) allocated for y axis label
public def headerBgHeight: Number = 100;   //height of the top screen header background
public def timeRangerHeight: Number = 45; //pixel
public def timeLineStrokeWidth: Integer = 14;
public def circleRadius = timeLineStrokeWidth * 0.5;
public def chartGap: Integer = 5; //the gap btw the actual chart and border line of chart view

public def indicatorValueOffset = 25;

//////// Widths and Heights ///
public def screenScale: Number = 0.9;
public var screenWidth: Number = screenScale * 1024;
public var screenHeight: Number = screenScale * 768;

//public def windowContentYOffset: Number = bind if (screenWidth < screenScale * 1280) 45 else 50;
public def windowContentYOffset: Number = 45;
public def chartWidth: Number = bind 0.72 * screenWidth;
public def labChartHeight: Number = bind 0.15 * screenHeight;
public def timeLineWidth = bind chartWidth - yLabelWidth;
public def chartDrawingAreaWidth: Number = bind chartWidth - yLabelWidth;
//the width of the actual drawing area in chart (exclude label and gaps)
public def nameWidth: Number = bind 0.25 * screenWidth;
public def timeIndicatorRadius: Number = 0.25 * timeRangerHeight;

public def assessmentBoxWidth = 680;
public def assessmentBoxHeight = 200;
public def alertChoieThreshold = 2;
//////// Offsets ////////////
public def groupLevelXOffset: Number = bind 0.02 * screenWidth;  //offset for labs and medications
public def chartDrawingAreaXOffset = bind (groupLevelXOffset + nameWidth);


//////// Time ///////////////
public def ajustedTimeStep: Number = 1.0/3.0;   //number of days adjusted after each assessment


/////// DB Table Names ////////
public def surveyTable = 'quang_test.survey';

def userName: String = "test_usr";
def password: String = "123";
def url: String = "jdbc:mysql://mendel.cs.pitt.edu:3306";
public def connection = DBConnection.setConnection(url, userName, password);

public def inDBName: String = "quang_test";

//////// Fonts //////////////
//public def tabFont1: Font = Font {
//    size: 12
//};
public def tabFont2: Font = Font {
    name: "Arial Bold"
    size: 12
};

public def font1: Font = Font {
    size: 13
};
public def font2: Font = Font {
    size: 16
};
public def font3: Font = Font {
    size: 24
};




public abstract class Window extends CustomNode {
    
}
